﻿using EF6Query.DBModel;
using EF6Query.Models.Common;
using EF6Query.Models.Req;
using EF6Query.QueryService;
using ExpressionBuilder.CustomExtend;
using System;
using System.Collections.Generic;
using System.Linq;

namespace EF6.Net5
{
    internal class Program
    {
        static void Main(string[] args)
        {
            //new ProductService().DynamicExpressionQueryTest();
            //new ProductService().DynamicExpressionJoinQueryTest();
            //var result = new DBEntityType().LoadProperties(typeof(Product));
            //var resut2 = new ProductService().ProductFifter(new List<DynamicExpressionRequest>()
            //{
            //    new   DynamicExpressionRequest(){ TableName ="Product", Expression = "Product.ID ==1" },
            //});
            //Console.WriteLine(resut2?.FirstOrDefault()?.ProductName ?? "无数据");
            Console.WriteLine("Hello World!");
            Product product = new Product();
            var propertyInfos = product.GetTableClassInfo();
            var tableClassInfos = TableTypeExtend.GetTableClassInfo<Product>();
        }
    }
}
